// 新闻动态页面
<template>
  <div class="newtext-state">
    <!-- 头部导航栏 -->
    <navigation-bar>
      <template>
        <img src="@/assets/img/logo.svg" alt />
      </template>
    </navigation-bar>
    <!-- 新闻动态头部 -->
    <public-header :imgUrl="backgroundImg">
      <h1>新闻动态</h1>
      <p>首页/ 新闻动态</p>
    </public-header>

    <!-- 动态详情 -->
    <div class="state">
      <div class="left">
        <h6 class="title">新闻动态</h6>
        <ul>
          <li>
            <router-link to="/newtextDetails">
              <img src="@/assets/img/新闻动态item.png" />
              <div class="text">
                <h5>火热申请中 | 结构部件目录新升级，在线申请，免费包邮！</h5>
                <p>500多家中外品牌商参展，现场演绎国际前沿的自动化产品技术和行业解决方案</p>
                <footer>
                  <span>编辑：毕少明</span>
                  <span>2019-09-03 18:50</span>
                  <span>45</span>
                </footer>
              </div>
            </router-link>
          </li>

          <li>
            <router-link to="/newtextDetails">
              <img src="@/assets/img/新闻动态item.png" />
              <div class="text">
                <h5>火热申请中 | 结构部件目录新升级，在线申请，免费包邮！</h5>
                <p>500多家中外品牌商参展，现场演绎国际前沿的自动化产品技术和行业解决方案</p>
                <footer>
                  <span>编辑：毕少明</span>
                  <span>2019-09-03 18:50</span>
                  <span>45</span>
                </footer>
              </div>
            </router-link>
          </li>
          <li>
            <router-link to="/newtextDetails">
              <img src="@/assets/img/新闻动态item.png" />
              <div class="text">
                <h5>火热申请中 | 结构部件目录新升级，在线申请，免费包邮！</h5>
                <p>500多家中外品牌商参展，现场演绎国际前沿的自动化产品技术和行业解决方案</p>
                <footer>
                  <span>编辑：毕少明</span>
                  <span>2019-09-03 18:50</span>
                  <span>45</span>
                </footer>
              </div>
            </router-link>
          </li>
        </ul>
      </div>
      <div class="right">
        <h6 class="title">热门资讯</h6>
        <p>
          <router-link
            to="/newtextDetails"
          >结构部件目录新升级，免构部件目录新升级，构部件目录新升级，构部件目录新升级，构部件目录新升级，构部件目录新升级，构部件目录新升级，构部件目录新升级，费申请！</router-link>
        </p>
        <p>
          <router-link to="/newtextDetails">结构部件目录新升级，免费申请！</router-link>
        </p>
        <p>
          <router-link to="/newtextDetails">结构部件目录新升级，免费申请！</router-link>
        </p>
      </div>
    </div>
    <!-- 引入页脚 -->
    <footer-link></footer-link>
  </div>
</template>
<script>
export default {
  name: "NewtextState",
  data() {
    return {
      backgroundImg: require("@/assets/img/新闻动态.jpg") //头部背景图片地址
    };
  }
};
</script>

<style lang='scss' scoped>
.newtext-state {
  width: 100%;
  color: black;
  .state {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    padding: 40px 200px 100px 200px;
    .left {
      width: 65%;
      // background-color: burlywood;
      ul {
        width: 100%;
        li {
          position: relative;
          margin-top: 50px;
          a {
            display: flex;
            img {
              width: 20%;
              height: 100px;
            }
            .text {
              display: flex;
              justify-content: left;
              flex-direction: column;
              width: 80%;
              box-sizing: border-box;
              position: relative;
              padding: 0 100px 50px 20px;
              h5 {
                font-size: 15px;
                color: #4a4a4a;
              }
              p {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 12px;
                color: #666;
                margin-top: 3px;
              }
              footer {
                position: absolute;
                bottom: 0;
                color: #9b9b9b;
                font-size: 12px;
                span {
                  position: relative;
                  margin-right: 50px;
                  &:nth-child(2) {
                    &::before {
                      position: absolute;
                      top: -2px;
                      left: -19px;
                      content: "";
                      height: 14px;
                      width: 14px;
                      background: url("~@/assets/img/时间 (2).png") no-repeat;
                      background-size: 100%;
                    }
                  }
                  &:last-child {
                    &::before {
                      position: absolute;
                      top: 1px;
                      left: -21px;
                      content: "";
                      height: 10px;
                      width: 14px;
                      background: url("~@/assets/img/阅读.png") no-repeat;
                      background-size: 100%;
                    }
                  }
                }
              }
            }
          }

          &:first-child {
            margin-top: 20px;
          }
          &::before {
            position: absolute;
            bottom: -24px;
            left: 165px;
            content: "";
            height: 1px;
            width: 415px;
            background-color: #eeeeee;
          }
        }
      }
    }
    .right {
      padding-left: 50px;
      width: 35%;
      // background-color: cadetblue;
      p {
        a {
          font-size: 14px;
          color: #666666;
        }
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 50px;
        border-bottom: 1px solid #e7e7e7;
      }
    }
    .title {
      font-size: 24px;
    }
  }
}
</style>